<%= form_with(model: product, builder: Polaris::FormBuilder) do |form| %>
  <%= polaris_layout do |layout| %>
    <%= layout.with_section do %>
      <%= polaris_card do %>
        <%= form.errors_summary %>
      <% end %>
    <% end %>

    <%= layout.with_section do %>
      <%= form.errors_summary(within: :page) do %>
        with custom content
      <% end %>
    <% end %>

    <%= layout.with_section do %>
      <%= form.polaris_text_field(:title) %>
    <% end %>

    <%= layout.with_section do %>
      <%= form.polaris_text_field(:title, clear_errors_on_focus: true) %>
    <% end %>
  <% end %>
<% end %>
